Skip to content

Use struct tags #2926

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 20, 2018
Merged

Use struct tags #2926

merged 3 commits into from
Sep 20, 2018

Conversation

kroening
Copy link
Member

@kroening kroening commented Sep 9, 2018

No description provided.

Copy link
Collaborator

@tautschnig tautschnig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving with some formatting requests (and assuming CI will pass).

typet tag_type;

if(type.id() == ID_union || type.id()==ID_incomplete_union)
tag_type=union_tag_typet(identifier);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit pick: spacing around = (here and below).

else if(type.id() == ID_symbol_type)
else if(
type.id() == ID_symbol_type || type.id() == ID_struct_tag ||
type.id() == ID_union_tag)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add braces around the (one-line) body for readability.

Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passed Diffblue compatibility checks (cbmc commit: a21cd68).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/85338055

Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passed Diffblue compatibility checks (cbmc commit: 04c26c4).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/85349549

@kroening kroening removed their assignment Sep 19, 2018
@kroening
Copy link
Member Author

It should be mentioned that the transition to struct and union tags was a ~5 year project!

@tautschnig tautschnig merged commit 683efbc into develop Sep 20, 2018
@tautschnig tautschnig deleted the struct-tag branch September 20, 2018 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants